package com.bb.blog.activiti.domain.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author czb
 * @date 13:46 2020/9/3
 * <p>
 * 流程引擎审批结果类
 */
@Data
public class UserTaskResult<T> {
    T data;
    List<String> assigneeList;
    boolean result;


    public Map<String, Object> toMap() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("data", data);
        map.put("assigneeList", assigneeList);
        map.put("result", result);
        return map;
    }

}
